package com.ruoyi.recipes.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

/**
 * 菜谱收藏表对象 recipe_favorites
 * 
 * @author syy
 * @date 2025-01-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("recipesFavorites")
public class RecipeFavorites extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏记录ID */
    private Long id;

    /** 菜谱ID */
    @Excel(name = "菜谱ID")
    private Long recipeId;

    /** 收藏的菜谱封面图片路径 */
    @Excel(name = "收藏的菜谱封面图片路径")
    private String favoriteCover;

    /** 收藏用户ID */
    @Excel(name = "收藏用户ID")
    private Long userId;

    /** 用户头像图片路径 */
    @Excel(name = "用户头像图片路径")
    private String userAvatar;

    /** 是否删除：0正常 1删除 */
    private Integer del;
    
    /** 关联菜谱信息 */
    private Recipes recipes;
    
    /** 关联用户信息 */
    private Users users;
}
